package com.dragon.pear.modules.trade.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;
import com.dragon.common.spring.business.base.BaseCrudController;
import com.dragon.pear.modules.trade.domain.entity.TradeGoodsImageEntity;
import com.dragon.pear.modules.trade.web.model.params.create.TradeGoodsImageCreateParam;
import com.dragon.pear.modules.trade.web.model.params.update.TradeGoodsImageUpdateParam;
import com.dragon.pear.modules.trade.web.model.params.search.TradeGoodsImageSearchParam;
import com.dragon.pear.modules.trade.web.model.params.order.TradeGoodsImageOrderParam;
import com.dragon.pear.modules.trade.web.model.results.TradeGoodsImageResult;
import com.dragon.pear.modules.trade.dao.repository.TradeGoodsImageRepository;
import com.dragon.pear.modules.trade.service.assistants.converters.TradeGoodsImageConverter;
import com.dragon.pear.modules.trade.service.def.TradeGoodsImageService;
import com.dragon.pear.modules.trade.web.api.TradeGoodsImageApi;

/**
 * @author Chris Chan
 * Create on 2025-09-30 22:06
 * Use for: 商品图片关联 接口实现
 * Explain:
 * 
 */
@RestController
@RequestMapping("trade/goods/image")
public class TradeGoodsImageController implements TradeGoodsImageApi, BaseCrudController<
        TradeGoodsImageEntity,
        TradeGoodsImageCreateParam,
        TradeGoodsImageUpdateParam,
        TradeGoodsImageSearchParam,
        TradeGoodsImageOrderParam,
        TradeGoodsImageResult,
        TradeGoodsImageRepository,
        TradeGoodsImageConverter,
        TradeGoodsImageService
        > {

    @Autowired
    TradeGoodsImageService tradeGoodsImageService;

    @Override
    public TradeGoodsImageService getService() {
        return tradeGoodsImageService;
    }
}